package com.ykq.system.controller;

import com.aaa.common.entity.AclUser;
import com.aaa.common.vo.Result;
import com.ykq.system.service.AclUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/system/user")
public class AclUserController {
    @Autowired
    private AclUserService userService;

    @GetMapping("/getByName/{username}")
    public Result<AclUser> getName(@PathVariable String username){
        return userService.findByName(username);
    }
}












